#ifndef USERINFOWIDGET_H
#define USERINFOWIDGET_H

#include <QDialog>
#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QGridLayout>
#include "model/data.h"

using model::UserInfo;

class UserInfoWidget : public QDialog
{
    Q_OBJECT
public:
    UserInfoWidget(const UserInfo &userInfo, QWidget *parent = nullptr);

private:
    UserInfo _userInfo;        // 用户信息对象
    QPushButton *_avatarBtn;

    QLabel *_idTag;
    QLabel *_idLabel;

    QLabel *_nameTag;
    QLabel *_nameLabel;

    QLabel *_mailTag;
    QLabel *_mailLabel;

    QPushButton *_applyBtn;
    QPushButton *_sendMsgBtn;
    QPushButton *_deleteBtn;
};

#endif // USERINFOWIDGET_H
